package com.leps.nq.bu.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.leps.nq.bi.vo.Entry;
import com.leps.nq.bu.entity.BuCust;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.leps.nq.bu.vo.CustQueryModel;
import com.leps.nq.bu.vo.CustVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 客户表 Mapper 接口
 * </p>
 *
 * @author hex
 * @since 2022-05-22
 */
@Mapper
public interface BuCustMapper extends BaseMapper<BuCust> {

    List<BuCust> selectCustListByUserId(Long userId);

    Page<CustVo> selectByQueryModel(@Param("page") Page<CustVo> page, @Param("queryModel") CustQueryModel queryModel);

    List<String> selectCustNameList();

    List<Entry<Integer>> selectProtectStat();

    List<BuCust> selectListByUserId(long userId);
}
